﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011ED RID: 4589
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StaminaInfoScNotify : IMessage<StaminaInfoScNotify>, IMessage, IEquatable<StaminaInfoScNotify>, IDeepCloneable<StaminaInfoScNotify>, IBufferMessage
	{
		// Token: 0x17003A1D RID: 14877
		// (get) Token: 0x0600CD91 RID: 52625 RVA: 0x00229C15 File Offset: 0x00227E15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StaminaInfoScNotify> Parser
		{
			get
			{
				return StaminaInfoScNotify._parser;
			}
		}

		// Token: 0x17003A1E RID: 14878
		// (get) Token: 0x0600CD92 RID: 52626 RVA: 0x00229C1C File Offset: 0x00227E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StaminaInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A1F RID: 14879
		// (get) Token: 0x0600CD93 RID: 52627 RVA: 0x00229C2E File Offset: 0x00227E2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StaminaInfoScNotify.Descriptor;
			}
		}

		// Token: 0x0600CD94 RID: 52628 RVA: 0x00229C35 File Offset: 0x00227E35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StaminaInfoScNotify()
		{
		}

		// Token: 0x0600CD95 RID: 52629 RVA: 0x00229C40 File Offset: 0x00227E40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StaminaInfoScNotify(StaminaInfoScNotify other) : this()
		{
			this.reserveStamina_ = other.reserveStamina_;
			this.stamina_ = other.stamina_;
			this.oMLFCKHIGNA_ = other.oMLFCKHIGNA_;
			this.nextRecoverTime_ = other.nextRecoverTime_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CD96 RID: 52630 RVA: 0x00229C94 File Offset: 0x00227E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StaminaInfoScNotify Clone()
		{
			return new StaminaInfoScNotify(this);
		}

		// Token: 0x17003A20 RID: 14880
		// (get) Token: 0x0600CD97 RID: 52631 RVA: 0x00229C9C File Offset: 0x00227E9C
		// (set) Token: 0x0600CD98 RID: 52632 RVA: 0x00229CA4 File Offset: 0x00227EA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ReserveStamina
		{
			get
			{
				return this.reserveStamina_;
			}
			set
			{
				this.reserveStamina_ = value;
			}
		}

		// Token: 0x17003A21 RID: 14881
		// (get) Token: 0x0600CD99 RID: 52633 RVA: 0x00229CAD File Offset: 0x00227EAD
		// (set) Token: 0x0600CD9A RID: 52634 RVA: 0x00229CB5 File Offset: 0x00227EB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Stamina
		{
			get
			{
				return this.stamina_;
			}
			set
			{
				this.stamina_ = value;
			}
		}

		// Token: 0x17003A22 RID: 14882
		// (get) Token: 0x0600CD9B RID: 52635 RVA: 0x00229CBE File Offset: 0x00227EBE
		// (set) Token: 0x0600CD9C RID: 52636 RVA: 0x00229CC6 File Offset: 0x00227EC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long OMLFCKHIGNA
		{
			get
			{
				return this.oMLFCKHIGNA_;
			}
			set
			{
				this.oMLFCKHIGNA_ = value;
			}
		}

		// Token: 0x17003A23 RID: 14883
		// (get) Token: 0x0600CD9D RID: 52637 RVA: 0x00229CCF File Offset: 0x00227ECF
		// (set) Token: 0x0600CD9E RID: 52638 RVA: 0x00229CD7 File Offset: 0x00227ED7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long NextRecoverTime
		{
			get
			{
				return this.nextRecoverTime_;
			}
			set
			{
				this.nextRecoverTime_ = value;
			}
		}

		// Token: 0x0600CD9F RID: 52639 RVA: 0x00229CE0 File Offset: 0x00227EE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StaminaInfoScNotify);
		}

		// Token: 0x0600CDA0 RID: 52640 RVA: 0x00229CF0 File Offset: 0x00227EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StaminaInfoScNotify other)
		{
			return other != null && (other == this || (this.ReserveStamina == other.ReserveStamina && this.Stamina == other.Stamina && this.OMLFCKHIGNA == other.OMLFCKHIGNA && this.NextRecoverTime == other.NextRecoverTime && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CDA1 RID: 52641 RVA: 0x00229D5C File Offset: 0x00227F5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ReserveStamina != 0U)
			{
				num ^= this.ReserveStamina.GetHashCode();
			}
			if (this.Stamina != 0U)
			{
				num ^= this.Stamina.GetHashCode();
			}
			if (this.OMLFCKHIGNA != 0L)
			{
				num ^= this.OMLFCKHIGNA.GetHashCode();
			}
			if (this.NextRecoverTime != 0L)
			{
				num ^= this.NextRecoverTime.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CDA2 RID: 52642 RVA: 0x00229DE6 File Offset: 0x00227FE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CDA3 RID: 52643 RVA: 0x00229DEE File Offset: 0x00227FEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CDA4 RID: 52644 RVA: 0x00229DF8 File Offset: 0x00227FF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Stamina != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Stamina);
			}
			if (this.OMLFCKHIGNA != 0L)
			{
				output.WriteRawTag(80);
				output.WriteInt64(this.OMLFCKHIGNA);
			}
			if (this.NextRecoverTime != 0L)
			{
				output.WriteRawTag(96);
				output.WriteInt64(this.NextRecoverTime);
			}
			if (this.ReserveStamina != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ReserveStamina);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CDA5 RID: 52645 RVA: 0x00229E8C File Offset: 0x0022808C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ReserveStamina != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ReserveStamina);
			}
			if (this.Stamina != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Stamina);
			}
			if (this.OMLFCKHIGNA != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.OMLFCKHIGNA);
			}
			if (this.NextRecoverTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.NextRecoverTime);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CDA6 RID: 52646 RVA: 0x00229F14 File Offset: 0x00228114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StaminaInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ReserveStamina != 0U)
			{
				this.ReserveStamina = other.ReserveStamina;
			}
			if (other.Stamina != 0U)
			{
				this.Stamina = other.Stamina;
			}
			if (other.OMLFCKHIGNA != 0L)
			{
				this.OMLFCKHIGNA = other.OMLFCKHIGNA;
			}
			if (other.NextRecoverTime != 0L)
			{
				this.NextRecoverTime = other.NextRecoverTime;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CDA7 RID: 52647 RVA: 0x00229F8C File Offset: 0x0022818C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CDA8 RID: 52648 RVA: 0x00229F98 File Offset: 0x00228198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 56U)
					{
						this.Stamina = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.OMLFCKHIGNA = input.ReadInt64();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.NextRecoverTime = input.ReadInt64();
						continue;
					}
					if (num == 120U)
					{
						this.ReserveStamina = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005279 RID: 21113
		private static readonly MessageParser<StaminaInfoScNotify> _parser = new MessageParser<StaminaInfoScNotify>(() => new StaminaInfoScNotify());

		// Token: 0x0400527A RID: 21114
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400527B RID: 21115
		public const int ReserveStaminaFieldNumber = 15;

		// Token: 0x0400527C RID: 21116
		private uint reserveStamina_;

		// Token: 0x0400527D RID: 21117
		public const int StaminaFieldNumber = 7;

		// Token: 0x0400527E RID: 21118
		private uint stamina_;

		// Token: 0x0400527F RID: 21119
		public const int OMLFCKHIGNAFieldNumber = 10;

		// Token: 0x04005280 RID: 21120
		private long oMLFCKHIGNA_;

		// Token: 0x04005281 RID: 21121
		public const int NextRecoverTimeFieldNumber = 12;

		// Token: 0x04005282 RID: 21122
		private long nextRecoverTime_;
	}
}
